const getOrdersPage = (params) => {
    return $axios({
        url: '/order/page',
        method: 'get',
        params
    })
}

const deleteOrders = (params) => {
    return $axios({
        url: '/order',
        method: 'delete',
        params
    })
}

const queryOrdersById = (id) => {
    return $axios({
        url: `/order/${id}`,
        method: 'get'
    })
}

const editOrders = (params) => {
    return $axios({
        url: `/order/edit`,
        method: 'put',
        data: {...params}
    })
}

const queryOrdersByUserId = (id) => {
    return $axios({
        url: `/order/user/${id}`,
        method: `get`,
    })
}